package com.collectplus.express.passport;

import android.app.Activity;
import android.widget.TextView;

import com.collectplus.express.R;
import com.collectplus.express.model.CollectingPassportBean;

import droid.frame.activity.base.BaseViewStub;

/**
 * Created by lidandan on 2018/3/8.
 * passport代收已取走的包裹
 */
public class NewPassportCollectingTakenOperate extends BaseViewStub {
    private CollectingPassportBean item;

    public NewPassportCollectingTakenOperate(Activity context, int resId) {
        super(context, resId);
    }

    public void loadLayout(final CollectingPassportBean item) {
        super.inflate();
        this.item = item;
        TextView collectingTakenTimeTv = (TextView) findViewById(R.id.collecting_taken_time_tv);
        TextView collectingTakenNumTv = (TextView) findViewById(R.id.collecting_taken_num_tv);
        TextView collectingTakenPhoneTv = (TextView) findViewById(R.id.collecting_taken_phone_tv);
        collectingTakenTimeTv.setText(item.getTakeTime());
        collectingTakenNumTv.setText("共" + item.getTotal() + "个包裹");
        collectingTakenPhoneTv.setText("用户" + item.getUserPhone() + "，已确认取件");

    }
}
